package com.example.springbootmybatis.service;

import com.example.springbootmybatis.entity.Role;
import com.example.springbootmybatis.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @title: ProductService
 * @Author Tan
 * @Date: 2021/6/24 22:18
 * @Version 1.0
 */
@Service
public class RoleService {
    @Resource
    private RoleMapper roleMapper;

    public Role selectByPrimaryKey(Integer id) {
        Role role = roleMapper.selectByPrimaryKey(id);
        return role;
    }
}
